package cn.edu.neusoft.maxingxin231.yuejian06.Model;

import java.util.List;

import cn.edu.neusoft.maxingxin231.yuejian06.Bean.TrainBean;
import cn.edu.neusoft.maxingxin231.yuejian06.Iface.RookieIface;
import cn.edu.neusoft.maxingxin231.yuejian06.Listener.ListListener;
import cn.edu.neusoft.maxingxin231.yuejian06.Service.LoginService;
import retrofit2.Call;
import retrofit2.Retrofit;

public class RookieModel extends RetrofitBaseModel implements RookieIface<TrainBean> {
    LoginService loginService;
    Retrofit retrofit;
    public RookieModel(){
        retrofit=getRetrofit();
        loginService=getLoginService();
    }
    @Override
    public void getRookieList(ListListener<TrainBean> listListener) {
        Call<List<TrainBean>> call=loginService.showrookielist();
        callenqueueList(call,listListener);
    }
}
